class PlaylistController < ApplicationController
  layout "default"
  def index
    redirect_to :action => 'list'
  end
  
  def list
    # lists all songs in the database, rendered automatically by list.rhtml
    @songs = Song.find(:all)
  end

  def details
    @song = Song.find(@params[:id])
  end
  
  def remove
      @song = Song.find(@params[:id])
      @song.destroy()
      redirect_to :action => 'list'
  end
end
